<template>
  <div class="main" v-if="isShow">
<!--    @click.self="closeContact"  点击任意关闭遮罩-->
    <div class="bgColor"></div>
    <div class="content">
      <div class="title-registerNotice">注册须知</div>
      <div class="notice-info">
        1、本系统必须使用实名信息注册；
        2、注册成功后不可更改身份信息；
        3、确保所填写信息的正确性，因个人填写错误信息造成的相应后果自行承担；
        4、不得填报任何违反有关法律规定的信息。 已经完整阅读
      </div>
      <div class="two-btn">
        <el-button @click="isShow=false" class="agree-btn">同意，提交</el-button>
        <el-button class="cancel-btn">不同意</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import Bus from "@/utils/Bus";
export default {
  data() {
    return {
      isShow:false,//控制遮罩层的显示也消失
    };
  },
  methods: {
    closeContact(){
      this.isShow = false;//关闭遮罩
    },
  },
  created(){
    Bus.$on("openDiv",e=>{//接收遮罩层弹出的指令
      this.isShow = e;
    })
  },
};
</script>

<style lang="scss" scoped>
.content{
  width: 655px;
  height: 479px;
  box-sizing: border-box;
  background-color: #fff!important;
  padding: 60px 0;
  position: fixed;
  top:160px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 101;
  border-radius: 10px;
  box-shadow: 0px 0px 29px 0px rgba(0,50,139,0.07);
  .title-registerNotice{
    color: #073786;
    font-weight: bold;
    font-size: 30px;
  }
  .notice-info{
    padding: 57px 79px;
    color: #333333;
    font-size: 18px;
    line-height: 30px;
  }
  .two-btn{
    padding: 0 79px;
    display: flex;
    justify-content: space-between;
    .agree-btn{
      width: 191px;
      height: 49px;
      background: #073786;
      color: white;
      border-radius: 5px;
      font-size: 16px;
    }
    .cancel-btn{
      width: 191px;
      height: 49px;
      background: #ADCCC4;
      border-radius: 5px;
      color: white;
      font-size: 16px;
    }
  }
}
.bgColor {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  filter: alpha(opacity=60);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}
</style>
